package rbm.modelado.datos.elementos;

import rbm.modelado.datos.elementos.interfaces.PointShape;

public class PointShapeImpl implements PointShape {

	private Integer[] coord;
	
	public PointShapeImpl (Integer x,Integer y){
		coord = new Integer[2];
		coord[0] = x;
		coord[1] = y;
	}
	public PointShapeImpl (Integer capacity){
		coord = new Integer[capacity];
	}
	
	public PointShapeImpl (){
		coord = new Integer[2];
	}
	
	public Object getShape() {	
		return coord;
	}

	public Integer getX() {
		return coord[0];
	}

	public Integer getY() {
		return coord[1];
	}
	
	//No necessary method
	public Integer getZ() {
		return null;
	}
	
	public Integer getN(Integer n) {
		return coord[n];
	}

	public Integer getDim() {
		return coord.length;
	}


	public void setX(Object x) {
		coord[0]=(Integer) x;	
	}


	public void setY(Object y) {
		coord[1]=(Integer) y;	
	}

	//No necessary method
	public void setZ(Object z) {
		
	}

   //No necessary method
	public void setN(Object n) {
	
	}

}
